package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 出库装箱信息主表
 * </p>
 *
 * @author long
 * @since 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_outbound_box")
@Deprecated
public class OutboundBoxDo extends Model<OutboundBoxDo> {

    private static final long serialVersionUID = 134532L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 出库单id
     */
    @TableField("outbound_id")
    private Long outboundId;

    /**
     * 箱类号
     */
    @TableField("box_type_number")
    private String boxTypeNumber;

    /**
     * 高 公制
     */
    @TableField("height")
    private BigDecimal height;

    @TableField("height_bs")
    private BigDecimal heightBs;

    /**
     * 长 公制
     */
    @TableField("length")
    private BigDecimal length;

    @TableField("length_bs")
    private BigDecimal lengthBs;

    /**
     * 宽 公制
     */
    @TableField("width")
    private BigDecimal width;

    @TableField("width_bs")
    private BigDecimal widthBs;

    /**
     * 重量 公制
     */
    @TableField("weight")
    private BigDecimal weight;

    @TableField("weight_bs")
    private BigDecimal weightBs;

    /**
     * 箱数
     */
    @TableField("box_total_qty")
    private Integer boxTotalQty;

    /**
     * 箱子内产品数
     */
    @TableField("sku_total_qty")
    private Integer skuTotalQty;

    /**
     * 产品种类
     */
    @TableField("sku_kind")
    private Integer skuKind;

    /**
     * 创建人
     */
    @TableField(value = "create_by_name", fill = FieldFill.INSERT)
    private String createByName;
    /**
     * 创建人
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
